package com.wms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@ApiModel(value = "补货单",description = "")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name="b_replenishment_order")
public class ReplenishmentOrder implements Serializable,Cloneable{

    @ApiModelProperty(name = "id",notes = "")
    private String id ;
    /** 补货单号 */
    @ApiModelProperty(name = "补货单号",notes = "")
    private String code ;
    /** 补货日期 */
    @ApiModelProperty(name = "补货日期",notes = "")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime replenishmentTime ;
    /** 商品信息 */
    @JsonIgnore
    @ApiModelProperty(name = "商品信息",notes = "")
    private String goodsmessage ;
    /** 门店 */
    @JsonIgnore
    @ApiModelProperty(name = "门店",notes = "")
    private String stores ;
    @JsonIgnore
    @ApiModelProperty(name = "补货详情",notes = "")
    private List<BReplenishmentDerail> bReplenishmentDerails;
}
